package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Movement;
import com.tanhua.model.vo.PageResult;

import java.util.List;

/**
 * @author SunSun
 * @date 2021/10/25
 */
public interface MovementApi {
    String publish(Movement movement);

    PageResult findByUserId(Long userId, Integer page, Integer pagesize);

    List<Movement> findFriendMovement(Long userId, Integer page, Integer pagesize);

    List<Movement> randomMovements(Integer pagesize);

    List<Movement> findMovementsByPids(List<Long> pids);

    Movement findOne(String movementID);

    PageResult findByUserId(Integer page, Integer pagesize, Long uid, Integer states);

    void update(String movementId, int state);
}
